adding 3-digit numbers with regrouping